gtk4.git
10 years agogtkcssnumbervalue.c: Include fallback-c89.c to fix build
Chun-wei Fan [Wed, 23 Dec 2015 10:58:42 +0000 (18:58 +0800)]
gtkcssnumbervalue.c: Include fallback-c89.c to fix build

... on older Visual Studio versions, where isinf() is not available, and
copy the isinf() implementation from gdk/fallback-c89.c to
gtk/fallback-c89.c.

10 years agoForgotten files
Matthias Clasen [Wed, 23 Dec 2015 06:56:07 +0000 (01:56 -0500)]
Forgotten files

10 years agowidget: Be safe against windows losing their frame clock
Matthias Clasen [Wed, 23 Dec 2015 04:46:59 +0000 (23:46 -0500)]
widget: Be safe against windows losing their frame clock

gdk_widget_get_frame_clock can return NULL. In particular,
this can happen when the drag window is destroyed at the end
of a DND operation. Handle this gracefully when it happens.

10 years agogtksettings: notify after property reset
Alberts Muktupāvels [Wed, 23 Dec 2015 03:30:11 +0000 (05:30 +0200)]
gtksettings: notify after property reset

10 years agoAdd parser tests for animation properties
Matthias Clasen [Wed, 23 Dec 2015 02:33:08 +0000 (21:33 -0500)]
Add parser tests for animation properties

This adds tests for animation-name, animation-duration,
animation-timing-function, animation-iteration-count,
animation-direction, animation-play-state, animation-delay
and animation-fill-mode.

10 years agoAdd a parser tests for transition properties
Matthias Clasen [Tue, 22 Dec 2015 04:28:48 +0000 (23:28 -0500)]
Add a parser tests for transition properties

This adds tests for transition-property, transition-delay
and transition-timing-function.

10 years agoAdd parser tests for min-width and min-height
Matthias Clasen [Tue, 22 Dec 2015 04:23:05 +0000 (23:23 -0500)]
Add parser tests for min-width and min-height

10 years agoAdd parser tests for border-image properties
Matthias Clasen [Tue, 22 Dec 2015 03:14:21 +0000 (22:14 -0500)]
Add parser tests for border-image properties

This adds tests for border-image-source, border-image-repeat,
border-image-slice and border-image-width.

10 years agofix printing of numbers
Matthias Clasen [Wed, 23 Dec 2015 02:58:31 +0000 (21:58 -0500)]
fix printing of numbers

We should be printing infinite, not inf.

10 years agoTrivial changes
Matthias Clasen [Wed, 23 Dec 2015 02:19:11 +0000 (21:19 -0500)]
Trivial changes

10 years agomenuitem: don't use content allocation to resize the GdkWindow
Cosimo Cecchi [Tue, 22 Dec 2015 23:36:00 +0000 (15:36 -0800)]
menuitem: don't use content allocation to resize the GdkWindow

This is a fallout from the gadget conversion.

10 years agowidget-factory: Rename outline radius in css
Matthias Clasen [Tue, 22 Dec 2015 21:20:09 +0000 (16:20 -0500)]
widget-factory: Rename outline radius in css

Rename all outline*radius properties to -gtk-outline*radius.

10 years agoAdwaita: Adapt to previous commit
Matthias Clasen [Tue, 22 Dec 2015 21:19:18 +0000 (16:19 -0500)]
Adwaita: Adapt to previous commit

Rename all outline*radius properties to -gtk-outline*radius.

10 years agoPrefix outline radius CSS properties
Matthias Clasen [Tue, 22 Dec 2015 21:18:10 +0000 (16:18 -0500)]
Prefix outline radius CSS properties

These are not in any CSS specifications, so mark them as GTK+
additions by giving them a -gtk prefix. The old names still work.

10 years agoAdd some docs to GtkIcon
Matthias Clasen [Tue, 22 Dec 2015 19:22:13 +0000 (14:22 -0500)]
Add some docs to GtkIcon

10 years agoAdd some docs to GtkBuiltinIcon
Matthias Clasen [Tue, 22 Dec 2015 19:09:36 +0000 (14:09 -0500)]
Add some docs to GtkBuiltinIcon

10 years agostylecontext: fix gtk-doc comment syntax
Cosimo Cecchi [Tue, 22 Dec 2015 19:56:23 +0000 (11:56 -0800)]
stylecontext: fix gtk-doc comment syntax

10 years agoAdwaita: don't set deprecated style property
Cosimo Cecchi [Tue, 22 Dec 2015 19:52:43 +0000 (11:52 -0800)]
Adwaita: don't set deprecated style property

10 years agoAdwaita: Fix app-notification theming
Matthias Clasen [Tue, 22 Dec 2015 18:48:32 +0000 (13:48 -0500)]
Adwaita: Fix app-notification theming

The way to disable the frame border has changed.

10 years agoFix GtkFrame padding
Matthias Clasen [Tue, 22 Dec 2015 18:33:43 +0000 (13:33 -0500)]
Fix GtkFrame padding

This was showing up in the app-notification in widget-factory.

10 years agocombobox: remove unused struct member
Cosimo Cecchi [Tue, 22 Dec 2015 18:52:42 +0000 (10:52 -0800)]
combobox: remove unused struct member

The box was removed a while ago.

10 years agoAdwaita: remove combobox separator styling
Cosimo Cecchi [Tue, 22 Dec 2015 18:49:21 +0000 (10:49 -0800)]
Adwaita: remove combobox separator styling

The separator does not exist anymore.

10 years agocombobox: deprecate shadow-type style property
Cosimo Cecchi [Tue, 22 Dec 2015 02:54:41 +0000 (18:54 -0800)]
combobox: deprecate shadow-type style property

It does not add any value to what can be achieved through regular CSS
styling.

10 years agocombobox: port to use a gadget
Cosimo Cecchi [Tue, 22 Dec 2015 02:43:19 +0000 (18:43 -0800)]
combobox: port to use a gadget

Wrap the size request and allocate code into a GtkCssCustomGadget. This
makes margins work on GtkComboBox.

10 years agocombobox: use a private variable when possible
Cosimo Cecchi [Tue, 22 Dec 2015 02:32:14 +0000 (18:32 -0800)]
combobox: use a private variable when possible

Instead of dereferencing the same variable over and over.

10 years agocombobox: trivial code cleanup
Cosimo Cecchi [Tue, 22 Dec 2015 01:50:42 +0000 (17:50 -0800)]
combobox: trivial code cleanup

10 years agocombobox: remove unneeded check
Cosimo Cecchi [Tue, 22 Dec 2015 01:47:44 +0000 (17:47 -0800)]
combobox: remove unneeded check

The combobox always has a window.

10 years agocombobox: use GtkIcon to render button arrow
Cosimo Cecchi [Mon, 21 Dec 2015 22:45:58 +0000 (14:45 -0800)]
combobox: use GtkIcon to render button arrow

We can now use the newly introduced GtkIcon widget to properly render
the arrow in the combobox with CSS.

10 years agoIntroduce GtkIcon private class
Cosimo Cecchi [Mon, 21 Dec 2015 22:46:44 +0000 (14:46 -0800)]
Introduce GtkIcon private class

This is an utility widget that wraps a GtkBuiltinIcon for situations
where using a real widget is more convenient than a gadget.

10 years agomenuitem: Simplify separators
Matthias Clasen [Tue, 22 Dec 2015 15:30:51 +0000 (10:30 -0500)]
menuitem: Simplify separators

For regular separators, we just rely on standard CSS background
rendering nowadays. Do the same for separators in menus.

https://bugzilla.gnome.org/show_bug.cgi?id=759765

10 years agoRevert "window: Remove suspicious branch"
Matthias Clasen [Tue, 22 Dec 2015 02:56:10 +0000 (21:56 -0500)]
Revert "window: Remove suspicious branch"

This reverts commit 67ab00e01ec06d7b05a82c3d80b235ac6c4abfd2.

See https://bugzilla.gnome.org/show_bug.cgi?id=759705
for a case where this makes a difference.

10 years agoAdwaita: fix bogus rounded corners on split headerbars
Lapo Calamandrei [Tue, 22 Dec 2015 10:53:27 +0000 (11:53 +0100)]
Adwaita: fix bogus rounded corners on split headerbars

we have to do some assumptions for css selectors limits for this
particular case, so for split headerbars to work correctly the
actual haderbars need not to have the titlebar class applied.

10 years agoGdkSeat: Add G_BEGIN_DECLS and G_END_DECLS
Kjell Ahlstedt [Tue, 22 Dec 2015 08:39:28 +0000 (09:39 +0100)]
GdkSeat: Add G_BEGIN_DECLS and G_END_DECLS

https://bugzilla.gnome.org/show_bug.cgi?id=759771

10 years agogtk/gtkbuiltinicon.c: Fix build
Chun-wei Fan [Tue, 22 Dec 2015 08:33:32 +0000 (16:33 +0800)]
gtk/gtkbuiltinicon.c: Fix build

The gtk_builtin_icon_get_default_size_property returns a const char *,
in a way such that some compilers insist that something that is of a
pointer value be returned, so fix that by replacing 0 with NULL.

10 years agoW32: avoid code duplication in gdkdevice-win32|virtual
Paolo Borelli [Sat, 19 Dec 2015 09:31:32 +0000 (10:31 +0100)]
W32: avoid code duplication in gdkdevice-win32|virtual

The same get_position function is cut and pasted in the two
classes.

10 years agoinspector: Avoid crash when canceling at startup
Daiki Ueno [Tue, 22 Dec 2015 02:21:56 +0000 (11:21 +0900)]
inspector: Avoid crash when canceling at startup

When clicking "Cancel" on the "Do you want to use GTK+ Inspector?"
dialog, unregister the update_debugging idle handler.  Also, steal
reference to 'inspector_window' while gtk_destroy_widget(), to make
further gtk_window_update_debugging() calls as a no-op.

https://bugzilla.gnome.org/show_bug.cgi?id=759764

10 years agoAdwaita: Fix overwrite cursors in entries
Matthias Clasen [Tue, 22 Dec 2015 01:16:14 +0000 (20:16 -0500)]
Adwaita: Fix overwrite cursors in entries

GtkEntry uses the background color to render the text over
the block cursor. A transparent background color makes that
not work.

10 years agoflowbox: remove unused prelight code
Matt Watson [Sat, 19 Dec 2015 01:47:00 +0000 (17:47 -0800)]
flowbox: remove unused prelight code

It was causing needless redraws

https://bugzilla.gnome.org/show_bug.cgi?id=759757

10 years agoFix import css parser tests
Matthias Clasen [Mon, 21 Dec 2015 21:32:56 +0000 (16:32 -0500)]
Fix import css parser tests

Don't use nonexisting properties here either

10 years agox11: create GdkSeat also in GdkX11DeviceManagerCore
Alberts Muktupāvels [Sat, 19 Dec 2015 17:21:10 +0000 (19:21 +0200)]
x11: create GdkSeat also in GdkX11DeviceManagerCore

There are at least few cases when GdkX11DeviceManagerXI2 will not
be used. Make sure that we have GdkSeat in such cases.

https://bugzilla.gnome.org/show_bug.cgi?id=759309

10 years agocss parser test: Drop remaining made-up properties
Matthias Clasen [Mon, 21 Dec 2015 19:53:09 +0000 (14:53 -0500)]
css parser test: Drop remaining made-up properties

These are not used anymore in any tests, and the css parser
doesn't support parsing custom properties anymore.

10 years agoFix css parser integer test
Matthias Clasen [Mon, 21 Dec 2015 19:52:06 +0000 (14:52 -0500)]
Fix css parser integer test

Use margin-top instead of a made-up property.

10 years agoUpdate css parser value none test
Matthias Clasen [Mon, 21 Dec 2015 19:44:00 +0000 (14:44 -0500)]
Update css parser value none test

The test is affected by icon-shadow being renamed and by
engine being deprecated.

10 years agoFix the css parser value initial test
Matthias Clasen [Mon, 21 Dec 2015 19:37:09 +0000 (14:37 -0500)]
Fix the css parser value initial test

This was affected by the recent renaming of icon-shadow to
-gtk-icon-shadow. Also, it produces an error now because
engine is deprecated.

10 years agoFix the css parser value inherit test
Matthias Clasen [Mon, 21 Dec 2015 19:35:11 +0000 (14:35 -0500)]
Fix the css parser value inherit test

This was affected by the recent renaming of icon-shadow to
-gtk-icon-shadow. Also, it produces an error now because
engine is deprecated.

10 years agoUpdate font-weight css parser test
Matthias Clasen [Mon, 21 Dec 2015 19:32:01 +0000 (14:32 -0500)]
Update font-weight css parser test

This is affected by the recent fix for parsing font-weight.

10 years agoUpdate font-family css parser test
Matthias Clasen [Mon, 21 Dec 2015 19:30:32 +0000 (14:30 -0500)]
Update font-family css parser test

There are no errors here.

10 years agoUpdate the css parser unknown pseudo-class test
Matthias Clasen [Mon, 21 Dec 2015 19:29:17 +0000 (14:29 -0500)]
Update the css parser unknown pseudo-class test

Use an existing property instead of a made-up one.

10 years agoUpdate the css parser selector test
Matthias Clasen [Mon, 21 Dec 2015 19:27:52 +0000 (14:27 -0500)]
Update the css parser selector test

Use an existing property instead of the made-up one, here.

10 years agoDrop the css parser enum test
Matthias Clasen [Mon, 21 Dec 2015 19:25:46 +0000 (14:25 -0500)]
Drop the css parser enum test

We are no longer using and non-css properties, and css enums
are all parsed with custom code.

10 years agoUpdate another css parser test
Matthias Clasen [Mon, 21 Dec 2015 19:17:28 +0000 (14:17 -0500)]
Update another css parser test

This test was using the engine property, which has
been deprecated and thus generates an error now.
Instead, use the font property.

10 years agoUpdate css parser test for declarations
Matthias Clasen [Mon, 21 Dec 2015 19:14:36 +0000 (14:14 -0500)]
Update css parser test for declarations

Use existing CSS properties instead of made-up ones.

10 years agotest-css-parser: Drop unused property
Matthias Clasen [Mon, 21 Dec 2015 19:11:10 +0000 (14:11 -0500)]
test-css-parser: Drop unused property

The rgba-property is no longer used in any tests, drop it.

10 years agoUpdate css parser tests for colors
Matthias Clasen [Mon, 21 Dec 2015 19:08:58 +0000 (14:08 -0500)]
Update css parser tests for colors

Use the color property instead of a made-up rgba-valued property.

10 years agotest-css-parser: Drop unused property
Matthias Clasen [Mon, 21 Dec 2015 19:07:08 +0000 (14:07 -0500)]
test-css-parser: Drop unused property

The border-property is no longer used in any tests, drop it.

10 years agoUpdate css parser test for borders
Matthias Clasen [Mon, 21 Dec 2015 19:06:07 +0000 (14:06 -0500)]
Update css parser test for borders

Use the border-image-width property instead of a made-up
border-valued property.

10 years agoUpdate border-radius-shorthand tests
Matthias Clasen [Mon, 21 Dec 2015 19:01:03 +0000 (14:01 -0500)]
Update border-radius-shorthand tests

The name of the css file is in the error output, so we
have to update that after the file was recently renamed.

10 years agoUpdate pseudo-class test
Matthias Clasen [Mon, 21 Dec 2015 18:59:24 +0000 (13:59 -0500)]
Update pseudo-class test

We have some more pseudo-classes now, and some are printed
out with their CSS name.

10 years agotest-css-parser: Drop unused properties
Matthias Clasen [Mon, 21 Dec 2015 18:53:56 +0000 (13:53 -0500)]
test-css-parser: Drop unused properties

We don't have any tests involving these style
properties, so don't install those.

10 years agoDon't test parsing boolean values in css
Matthias Clasen [Mon, 21 Dec 2015 18:51:23 +0000 (13:51 -0500)]
Don't test parsing boolean values in css

CSS doesn't have any boolean properties.

10 years agowayland: Don't trigger grab on missing capabilities
Carlos Garnacho [Mon, 21 Dec 2015 18:13:41 +0000 (19:13 +0100)]
wayland: Don't trigger grab on missing capabilities

Those might not be currently there in the first place.

10 years agoimage: Don't assume baseline parameters are non-NULL
Matthias Clasen [Mon, 21 Dec 2015 17:53:05 +0000 (12:53 -0500)]
image: Don't assume baseline parameters are non-NULL

The GetSize callback *can* assume that minimum and natural are
non-NULL. Buy minimum_baseline and natural_baseline can and
will be NULL, so handle that. This was causing crashes e.g. in
pavucontrol.

10 years agomenu: port arrow rendering to use a GtkBuiltinIcon
Cosimo Cecchi [Mon, 21 Dec 2015 01:30:52 +0000 (17:30 -0800)]
menu: port arrow rendering to use a GtkBuiltinIcon

At the same time, remove one spurious background/frame rendering, and
simplify the code a great deal.

10 years agomenuitem: trivial doc improvement
Cosimo Cecchi [Mon, 21 Dec 2015 02:48:08 +0000 (18:48 -0800)]
menuitem: trivial doc improvement

10 years agocssgadget: print more information when warning
Cosimo Cecchi [Mon, 21 Dec 2015 02:29:48 +0000 (18:29 -0800)]
cssgadget: print more information when warning

10 years agocssgadget: fix fallback case
Cosimo Cecchi [Mon, 21 Dec 2015 02:23:46 +0000 (18:23 -0800)]
cssgadget: fix fallback case

We should be resetting the height here, not the width.

10 years agomenu: deprecate double-arrows style property
Cosimo Cecchi [Mon, 21 Dec 2015 02:44:10 +0000 (18:44 -0800)]
menu: deprecate double-arrows style property

It does not sound like a good idea anymore to have a style property
change the layout of the menu this drastically.

10 years agomenu: deprecate arrow-placement style property
Cosimo Cecchi [Sun, 20 Dec 2015 19:19:23 +0000 (11:19 -0800)]
menu: deprecate arrow-placement style property

It does not sound like a good idea anymore to have a style property
change the layout of the menu this drastically.

10 years agoAdwaita: set scrollbar style props in a general wildcard
Lapo Calamandrei [Mon, 21 Dec 2015 15:58:03 +0000 (16:58 +0100)]
Adwaita: set scrollbar style props in a general wildcard

trying to make webkit happy.

10 years agoAdwaita: fix split headerbar styling
Lapo Calamandrei [Mon, 21 Dec 2015 15:18:04 +0000 (16:18 +0100)]
Adwaita: fix split headerbar styling

applications with split headerbars has a container in the titlebar
slot so the .titlebar style there needs to be reset. Since we can't
go backward with selectors I assumed that any csd application
sports a headerbar hence relying on that styling and resetting
the .titlebar styleclass.

10 years agocss: Support CSS names for pseudo states
Matthias Clasen [Mon, 21 Dec 2015 13:26:58 +0000 (08:26 -0500)]
css: Support CSS names for pseudo states

What we call :insensitive is called :disabled in CSS, and
:inconsistent is :indeterminate. Recognize these names, but
still support the old ones.

10 years agoAdwaita: Attempt a fixing split headers
Matthias Clasen [Mon, 21 Dec 2015 12:46:37 +0000 (07:46 -0500)]
Adwaita: Attempt a fixing split headers

Remove decorations from headerbars which are wrapped in some
other containers (like boxes, or paneds), to prevent double
decorations in those cases.

10 years agoAdd missing tests to Makefile.am
Matthias Clasen [Mon, 21 Dec 2015 11:58:29 +0000 (06:58 -0500)]
Add missing tests to Makefile.am

10 years agoFix the build
Matthias Clasen [Mon, 21 Dec 2015 11:45:32 +0000 (06:45 -0500)]
Fix the build

10 years agoAdd some css parser tests
Matthias Clasen [Sun, 20 Dec 2015 22:33:24 +0000 (17:33 -0500)]
Add some css parser tests

These tests exercise many allowed ways to specify various
properties.

10 years agoAdwaita: make progressbars and scales the same size
Lapo Calamandrei [Mon, 21 Dec 2015 10:50:56 +0000 (11:50 +0100)]
Adwaita: make progressbars and scales the same size

10 years agoAdwaita: progressbar sizing and progress component positioning
Lapo Calamandrei [Mon, 21 Dec 2015 10:28:45 +0000 (11:28 +0100)]
Adwaita: progressbar sizing and progress component positioning

shrinked progressbars a bit and moved the progress component start
and end over the trough border.

10 years agoFix a typo
Matthias Clasen [Mon, 21 Dec 2015 04:50:40 +0000 (23:50 -0500)]
Fix a typo

10 years agoFix parsing of font-weight
Matthias Clasen [Sun, 20 Dec 2015 22:51:47 +0000 (17:51 -0500)]
Fix parsing of font-weight

The parser was turning a 400 into a 200 and a 700 into a 500.

10 years agobuttonbox: Fix size request
Matthias Clasen [Sun, 20 Dec 2015 22:03:06 +0000 (17:03 -0500)]
buttonbox: Fix size request

A copy-paste mistake was making us always request too little
space, causing the buttons to be jumbled or cut off.

https://bugzilla.gnome.org/show_bug.cgi?id=759664

10 years agoinspector: Avoid criticals in the css editro
Matthias Clasen [Sun, 20 Dec 2015 19:40:49 +0000 (14:40 -0500)]
inspector: Avoid criticals in the css editro

We can't keep text iters around after text buffer has been
changed. Just clear the list errors when the buffer changes
before we've passed it again.

10 years agoentry: Fix typo
Michael Catanzaro [Sun, 20 Dec 2015 17:52:30 +0000 (11:52 -0600)]
entry: Fix typo

10 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 20 Dec 2015 13:41:08 +0000 (15:41 +0200)]
Updated Lithuanian translation

10 years agomodelbutton: Stop saving cairo state
Matthias Clasen [Sun, 20 Dec 2015 06:04:59 +0000 (01:04 -0500)]
modelbutton: Stop saving cairo state

GtkBuiltinIcon does this now on its own.

10 years agocheckbutton: stop saving cairo state
Matthias Clasen [Sun, 20 Dec 2015 06:04:13 +0000 (01:04 -0500)]
checkbutton: stop saving cairo state

GtkBuiltinIcon now does this on its own.

10 years agoSome updates to the CSS docs
Matthias Clasen [Sun, 20 Dec 2015 05:54:47 +0000 (00:54 -0500)]
Some updates to the CSS docs

Remove references to regions and engines, emphasize
element names over type names, update the list of
pseudo-states.

10 years agocheckmenuitem: port indicator gadget to GtkBuiltinIcon
Cosimo Cecchi [Sat, 19 Dec 2015 21:01:53 +0000 (13:01 -0800)]
checkmenuitem: port indicator gadget to GtkBuiltinIcon

Saves a lot of code.

10 years agomenuitem: port arrow gadget to GtkBuiltinIcon
Cosimo Cecchi [Sat, 19 Dec 2015 20:29:39 +0000 (12:29 -0800)]
menuitem: port arrow gadget to GtkBuiltinIcon

Saves a lot of code.

10 years agomenuitem: simplify code
Cosimo Cecchi [Sat, 19 Dec 2015 20:10:45 +0000 (12:10 -0800)]
menuitem: simplify code

Only cast once.

10 years agobuiltinicon: save/restore cairo context when rendering
Cosimo Cecchi [Sat, 19 Dec 2015 20:07:39 +0000 (12:07 -0800)]
builtinicon: save/restore cairo context when rendering

10 years agocheckmenuitem: deprecate indicator-size style property
Cosimo Cecchi [Sat, 19 Dec 2015 01:59:34 +0000 (17:59 -0800)]
checkmenuitem: deprecate indicator-size style property

We can now use min-width/min-height.

10 years agomenuitem: deprecate toggle-spacing style property
Cosimo Cecchi [Sat, 19 Dec 2015 01:52:16 +0000 (17:52 -0800)]
menuitem: deprecate toggle-spacing style property

We can move this to just use the actual GtkCssGadget of the menu item.

10 years agocheckmenuitem: use a gadget for the check indicator
Cosimo Cecchi [Fri, 18 Dec 2015 22:45:15 +0000 (14:45 -0800)]
checkmenuitem: use a gadget for the check indicator

This will make margins and other CSS properties work correctly on the
indicator.

10 years agotheme: fix menu check/radio styling
Cosimo Cecchi [Fri, 18 Dec 2015 22:20:39 +0000 (14:20 -0800)]
theme: fix menu check/radio styling

This is a leftover from the CssNode port of GtkCheckMenuItem and
GtkRadioMenuItem.

10 years agomenuitem: trivial cleanup
Cosimo Cecchi [Fri, 18 Dec 2015 18:10:28 +0000 (10:10 -0800)]
menuitem: trivial cleanup

10 years agocheckmenuitem: prefer early return
Cosimo Cecchi [Fri, 18 Dec 2015 17:59:23 +0000 (09:59 -0800)]
checkmenuitem: prefer early return

10 years agomenuitem: deprecate arrow-scaling style property
Cosimo Cecchi [Fri, 18 Dec 2015 05:54:46 +0000 (21:54 -0800)]
menuitem: deprecate arrow-scaling style property

With this, we can also remove the custom measure function of the arrow
gadget.

10 years agomenuitem: convert arrow rendering to GtkCssGadget
Cosimo Cecchi [Fri, 18 Dec 2015 05:41:40 +0000 (21:41 -0800)]
menuitem: convert arrow rendering to GtkCssGadget

This also deprecates the arrow-spacing style property, which can be now
replaced with a simple margin.

10 years agomenuitem: deprecate width-chars style property
Cosimo Cecchi [Fri, 18 Dec 2015 03:24:24 +0000 (19:24 -0800)]
menuitem: deprecate width-chars style property

Instead, we can just set min-width.

10 years agomenuitem: port to gadgets
Cosimo Cecchi [Fri, 18 Dec 2015 03:12:06 +0000 (19:12 -0800)]
menuitem: port to gadgets

This is not a complete conversion yet - more changes will come in later
commits.